#ifndef ADDTESTDIALOG_H
#define ADDTESTDIALOG_H

#include <QDialog>
#include "chipsinfo.h"

QT_FORWARD_DECLARE_CLASS( QListWidgetItem )

namespace Ui {
class AddTestDialog;
}

class AddTestDialog : public QDialog
{
    Q_ENUMS(TestType)
    Q_OBJECT

public:
    enum TestType {TT_ProjectTest, TT_PropertyTest, TT_MatrixTest, TT_ParametersTest};

    AddTestDialog(/*ChipsInfo::Designer designer, */QWidget *parent = 0);
    ~AddTestDialog();

signals:
    void startButtonsEnableReconcile();

public slots:
    void setRevisions();

private:
    void createIcons() const;
    void installUi() const;

private slots:
    void on_plusButton_clicked();
    void on_removeButton_clicked();
    void changeTest(QListWidgetItem *current, QListWidgetItem *previous) const;
    void buttonsEnableReconcile() const;

private:
    ChipsInfo::Designer _designer;
    Ui::AddTestDialog *ui;
};

#endif // ADDTESTDIALOG_H
